// 服务领域轮播初始化
document.addEventListener('DOMContentLoaded', function() {
  // 初始化服务轮播
  setTimeout(function() {
    var servicesSwiper = new Swiper('.services-swiper', {
      slidesPerView: 1,
      spaceBetween: 40,
      loop: true,
      slidesPerGroup: 1,
      loopFillGroupWithBlank: true,
      centeredSlides: false,
      watchOverflow: true,
      roundLengths: true,
      autoplay: {
        delay: 3000,
        disableOnInteraction: false,
      },
      pagination: {
        el: '.services-pagination',
        clickable: true,
      },
      navigation: {
        nextEl: '.services-button-next',
        prevEl: '.services-button-prev',
      },
      breakpoints: {
        576: {
          slidesPerView: 1,
          spaceBetween: 40,
          slidesPerGroup: 1
        },
        992: {
          slidesPerView: 2,
          spaceBetween: 40,
          slidesPerGroup: 1
        },
        1200: {
          slidesPerView: 3,
          spaceBetween: 40,
          slidesPerGroup: 1
        }
      }
    });
  }, 100);
});